<template>
  <div class="layout">
    <el-container class="el-container">
      <el-aside width="200px">
        <!-- 左侧侧边栏 -->
        <v-aside></v-aside>
      </el-aside>
      <el-container>
        <el-header>
          <!-- 头部组件 -->
          <v-header></v-header>
        </el-header>
        <el-main>
          <!-- 会变的组件 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import vAside from './Aside.vue'
import vHeader from './Header.vue'
export default {
  components: {
    vAside,
    vHeader,
  }
};
</script>

<style>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
}

body > .el-container {
  margin-bottom: 40px;
}

.layout .el-container {
  height: 100vh;
}
</style>